cmake_minimum_required(VERSION 3.6)
project(mqtt_plugin)
set(CMAKE_CXX_STANDARD 14)

include_directories(.)
add_subdirectory(SqliteAuth)
#add_subdirectory(RedisAuth)
add_library(mqtt_plugin SHARED AuthPluginInterface.cpp InnerPlugin.cpp AuthFunctions.cpp Logger.cpp Common.cpp)
#target_link_libraries(mqtt_plugin RedisAuth dl)
target_link_libraries(mqtt_plugin AuthSqlite dl)
install(TARGETS mqtt_plugin LIBRARY DESTINATION "${CMAKE_INSTALL_SBINDIR}")
